//
//  ViewController.m
//  Algorithm
//
//  Created by zlmac on 16/7/30.
//  Copyright © 2016年 godHands. All rights reserved.
//

#import "ViewController.h"
#import "Algorithm.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    int a[]={1,9,8,4,2};
    int result=searchKKK(a, 3,sizeof(a)/sizeof(a[0]));
    printf("%d",result);
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
